<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>FabGL: vgatextcontroller.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">FabGL
   </div>
   <div id="projectbrief">ESP32 Display Controller and Graphics Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.3 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('vgatextcontroller_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle"><div class="title">vgatextcontroller.h</div></div>
</div><!--header-->
<div class="contents">
<a href="vgatextcontroller_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="comment">  Created by Fabrizio Di Vittorio (fdivitto2013@gmail.com) - &lt;http://www.fabgl.com&gt;</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="comment">  Copyright (c) 2019-2022 Fabrizio Di Vittorio.</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="comment">  All rights reserved.</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="comment"></span> </div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="comment"></span> </div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="comment">* Please contact fdivitto2013@gmail.com if you need a commercial license.</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="comment"></span> </div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="comment"></span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="comment">* This library and related software is available under GPL v3.</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="comment"></span> </div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="comment">  FabGL is free software: you can redistribute it and/or modify</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="comment">  it under the terms of the GNU General Public License as published by</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="comment">  the Free Software Foundation, either version 3 of the License, or</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="comment">  (at your option) any later version.</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="comment"></span> </div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="comment">  FabGL is distributed in the hope that it will be useful,</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="comment">  but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="comment">  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span><span class="comment">  GNU General Public License for more details.</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="comment"></span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span><span class="comment">  You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="comment">  along with FabGL.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="comment"> */</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span> </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span> </div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span><span class="preprocessor">#include &lt;stdint.h&gt;</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span><span class="preprocessor">#include &lt;stddef.h&gt;</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span> </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span><span class="preprocessor">#include &quot;driver/gpio.h&quot;</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span> </div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span><span class="preprocessor">#include &quot;<a class="code" href="fabglconf_8h.html">fabglconf.h</a>&quot;</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span><span class="preprocessor">#include &quot;<a class="code" href="fabutils_8h.html">fabutils.h</a>&quot;</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span><span class="preprocessor">#include &quot;<a class="code" href="swgenerator_8h.html">devdrivers/swgenerator.h</a>&quot;</span></div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span><span class="preprocessor">#include &quot;<a class="code" href="vgacontroller_8h.html">dispdrivers/vgacontroller.h</a>&quot;</span></div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span> </div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span> </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span><span class="keyword">namespace </span>fabgl {</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span> </div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span> </div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span><span class="preprocessor">#define VGATextController_WIDTH          640</span></div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span><span class="preprocessor">#define VGATextController_HEIGHT         480</span></div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span><span class="preprocessor">#define VGATextController_MODELINE       VGA_640x480_60Hz</span></div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span> </div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span> </div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span> </div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span> </div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span> </div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span> </div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"><a class="line" href="classfabgl_1_1_v_g_a_text_controller.html">   79</a></span><span class="keyword">class </span><a class="code hl_class" href="classfabgl_1_1_v_g_a_text_controller.html">VGATextController</a>  : <span class="keyword">public</span> <a class="code hl_class" href="classfabgl_1_1_textual_display_controller.html">TextualDisplayController</a> {</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span> </div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span> </div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span>  <a class="code hl_class" href="classfabgl_1_1_v_g_a_text_controller.html">VGATextController</a>();</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span>  <a class="code hl_class" href="classfabgl_1_1_v_g_a_text_controller.html">~VGATextController</a>();</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span> </div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno">  102</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="classfabgl_1_1_v_g_a_text_controller_ab0bdf5cca484fb2ba637c39384b27fb2.html#ab0bdf5cca484fb2ba637c39384b27fb2">begin</a>(gpio_num_t redGPIO, gpio_num_t greenGPIO, gpio_num_t blueGPIO, gpio_num_t HSyncGPIO, gpio_num_t VSyncGPIO);</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno">  103</span> </div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno">  123</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="classfabgl_1_1_v_g_a_text_controller_ab0bdf5cca484fb2ba637c39384b27fb2.html#ab0bdf5cca484fb2ba637c39384b27fb2">begin</a>(gpio_num_t red1GPIO, gpio_num_t red0GPIO, gpio_num_t green1GPIO, gpio_num_t green0GPIO, gpio_num_t blue1GPIO, gpio_num_t blue0GPIO, gpio_num_t HSyncGPIO, gpio_num_t VSyncGPIO);</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno">  124</span> </div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno">  135</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="classfabgl_1_1_v_g_a_text_controller_ab0bdf5cca484fb2ba637c39384b27fb2.html#ab0bdf5cca484fb2ba637c39384b27fb2">begin</a>();</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno">  136</span> </div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno">  142</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="classfabgl_1_1_v_g_a_text_controller_a4583a73c34544a3ab09802f045c16664.html#a4583a73c34544a3ab09802f045c16664">setResolution</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> * modeline = <span class="keyword">nullptr</span>, <span class="keywordtype">int</span> viewPortWidth = -1, <span class="keywordtype">int</span> viewPortHeight = -1, <span class="keywordtype">bool</span> doubleBuffered = <span class="keyword">false</span>);</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno">  143</span> </div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno">  149</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="classfabgl_1_1_v_g_a_text_controller_a6935cf763d0d228200f61930f2141095.html#a6935cf763d0d228200f61930f2141095">setTextMap</a>(uint32_t <span class="keyword">const</span> * map, <span class="keywordtype">int</span> rows);</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno">  150</span> </div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno">  157</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="classfabgl_1_1_v_g_a_text_controller_a93fe2c22583c485ebf4f60081f535cf8.html#a93fe2c22583c485ebf4f60081f535cf8">adjustMapSize</a>(<span class="keywordtype">int</span> * columns, <span class="keywordtype">int</span> * rows);</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno">  158</span> </div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno">  159</span>  <span class="keywordtype">int</span> getColumns()                         { <span class="keywordflow">return</span> s_columns; }</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno">  160</span>  <span class="keywordtype">int</span> getRows()                            { <span class="keywordflow">return</span> s_rows; }</div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"><a class="line" href="classfabgl_1_1_v_g_a_text_controller_a4fe93a7b8c83c1fc72de32c202dc381a.html#a4fe93a7b8c83c1fc72de32c202dc381a">  161</a></span>  <span class="keywordtype">int</span> <a class="code hl_function" href="classfabgl_1_1_v_g_a_text_controller_a4fe93a7b8c83c1fc72de32c202dc381a.html#a4fe93a7b8c83c1fc72de32c202dc381a">colorsCount</a>()                        { <span class="keywordflow">return</span> 16; }</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno">  162</span> </div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno">  163</span>  <span class="keywordtype">void</span> enableCursor(<span class="keywordtype">bool</span> value)            { m_cursorEnabled = value; }</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno">  164</span>  <span class="keywordtype">void</span> setCursorPos(<span class="keywordtype">int</span> row, <span class="keywordtype">int</span> col)      { m_cursorRow = row; m_cursorCol = col; m_cursorCounter = 0; }</div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno">  165</span>  <span class="keywordtype">void</span> setCursorSpeed(<span class="keywordtype">int</span> value)           { m_cursorSpeed = value; }</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno">  166</span>  <span class="keywordtype">void</span> setCursorForeground(<a class="code hl_enumeration" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#gab87bacfdad76e61b9412d7124be44c1c">Color</a> value);</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno">  167</span>  <span class="keywordtype">void</span> setCursorBackground(<a class="code hl_enumeration" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#gab87bacfdad76e61b9412d7124be44c1c">Color</a> value);</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno">  168</span> </div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno">  185</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="classfabgl_1_1_v_g_a_text_controller_a8ea5f9decd46d4b507c65a65f9188b0b.html#a8ea5f9decd46d4b507c65a65f9188b0b">setFont</a>(FontInfo <span class="keyword">const</span> * value);</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno">  186</span> </div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno">  187</span>  FontInfo <span class="keyword">const</span> * getFont()               { <span class="keywordflow">return</span> m_font; }</div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno">  188</span> </div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno">  189</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno">  190</span> </div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno">  191</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="classfabgl_1_1_v_g_a_text_controller_a4583a73c34544a3ab09802f045c16664.html#a4583a73c34544a3ab09802f045c16664">setResolution</a>(VGATimings <span class="keyword">const</span>&amp; timings);</div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno">  192</span>  <span class="keywordtype">void</span> init(gpio_num_t VSyncGPIO);</div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno">  193</span>  <span class="keywordtype">void</span> setupGPIO(gpio_num_t gpio, <span class="keywordtype">int</span> bit, gpio_mode_t mode);</div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno">  194</span>  <span class="keywordtype">void</span> freeBuffers();</div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno">  195</span> </div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno">  196</span>  <span class="keywordtype">void</span> fillDMABuffers();</div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno">  197</span>  uint8_t packHVSync(<span class="keywordtype">bool</span> HSync, <span class="keywordtype">bool</span> VSync);</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno">  198</span>  uint8_t preparePixelWithSync(RGB222 rgb, <span class="keywordtype">bool</span> HSync, <span class="keywordtype">bool</span> VSync);</div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno">  199</span> </div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno">  200</span>  uint8_t IRAM_ATTR preparePixel(RGB222 rgb) { <span class="keywordflow">return</span> m_HVSync | (rgb.B &lt;&lt; VGA_BLUE_BIT) | (rgb.G &lt;&lt; VGA_GREEN_BIT) | (rgb.R &lt;&lt; VGA_RED_BIT); }</div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno">  201</span> </div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno">  202</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> ISRHandler(<span class="keywordtype">void</span> * arg);</div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno">  203</span> </div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno">  204</span> </div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno">  205</span>  <span class="keyword">static</span> <span class="keyword">volatile</span> <span class="keywordtype">int</span>        s_scanLine;</div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno">  206</span>  <span class="keyword">static</span> uint32_t            s_blankPatternDWord;</div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno">  207</span>  <span class="keyword">static</span> uint32_t *          s_fgbgPattern;</div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno">  208</span>  <span class="keyword">static</span> <span class="keywordtype">int</span>                 s_textRow;</div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno">  209</span>  <span class="keyword">static</span> <span class="keywordtype">bool</span>                s_upperRow;</div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno">  210</span>  <span class="keyword">static</span> lldesc_t <span class="keyword">volatile</span> * s_frameResetDesc;</div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno">  211</span>  <span class="keyword">static</span> int16_t             s_charWidthInBytes;</div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno">  212</span>  <span class="keyword">static</span> int16_t             s_charHeight;</div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno">  213</span>  <span class="keyword">static</span> int16_t             s_columns;</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno">  214</span>  <span class="keyword">static</span> int16_t             s_rows;</div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno">  215</span> </div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno">  216</span>  VGATimings                 m_timings;</div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno">  217</span> </div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno">  218</span>  GPIOStream                 m_GPIOStream;</div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno">  219</span>  <span class="keywordtype">int</span>                        m_bitsPerChannel;  <span class="comment">// 1 = 8 colors, 2 = 64 colors, set by begin()</span></div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno">  220</span>  lldesc_t <span class="keyword">volatile</span> *        m_DMABuffers;</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno">  221</span>  <span class="keywordtype">int</span>                        m_DMABuffersCount;</div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno">  222</span> </div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno">  223</span>  uint32_t *                 m_lines;</div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno">  224</span> </div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno">  225</span>  <span class="keywordtype">int</span>                        m_rows;</div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno">  226</span> </div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno">  227</span>  <span class="keyword">volatile</span> uint8_t *         m_blankLine; <span class="comment">// for vertical porch lines</span></div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno">  228</span>  <span class="keyword">volatile</span> uint8_t *         m_syncLine;  <span class="comment">// for vertical sync lines</span></div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno">  229</span> </div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno">  230</span>  intr_handle_t              m_isr_handle;</div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno">  231</span> </div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno">  232</span>  <span class="comment">// contains H and V signals for visible line</span></div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno">  233</span>  <span class="keyword">volatile</span> uint8_t           m_HVSync;</div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno">  234</span> </div>
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno">  235</span>  uint8_t *                  m_charData;</div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno">  236</span>  uint32_t <span class="keyword">const</span> *           m_map;</div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno">  237</span> </div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno">  238</span>  <span class="comment">// cursor props</span></div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno">  239</span>  <span class="keywordtype">bool</span>                       m_cursorEnabled;</div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno">  240</span>  <span class="keywordtype">int</span>                        m_cursorCounter; <span class="comment">// trip from -m_cursorSpeed to +m_cursorSpeed (&gt;= cursor is visible)</span></div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno">  241</span>  <span class="keywordtype">int</span>                        m_cursorSpeed;</div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno">  242</span>  <span class="keywordtype">int</span>                        m_cursorRow;</div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno">  243</span>  <span class="keywordtype">int</span>                        m_cursorCol;</div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno">  244</span>  uint8_t                    m_cursorForeground;</div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno">  245</span>  uint8_t                    m_cursorBackground;</div>
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno">  246</span>  FontInfo <span class="keyword">const</span> *           m_font;</div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno">  247</span> </div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno">  248</span>};</div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno">  249</span> </div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno">  250</span> </div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno">  251</span> </div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno">  252</span>}</div>
<div class="ttc" id="aclassfabgl_1_1_textual_display_controller_html"><div class="ttname"><a href="classfabgl_1_1_textual_display_controller.html">fabgl::TextualDisplayController</a></div><div class="ttdoc">Represents the base abstract class for textual display controllers.</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00729">displaycontroller.h:729</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_v_g_a_text_controller_a4583a73c34544a3ab09802f045c16664_html_a4583a73c34544a3ab09802f045c16664"><div class="ttname"><a href="classfabgl_1_1_v_g_a_text_controller_a4583a73c34544a3ab09802f045c16664.html#a4583a73c34544a3ab09802f045c16664">fabgl::VGATextController::setResolution</a></div><div class="ttdeci">void setResolution(char const *modeline=nullptr, int viewPortWidth=-1, int viewPortHeight=-1, bool doubleBuffered=false)</div><div class="ttdoc">Sets fixed resolution.</div><div class="ttdef"><b>Definition:</b> <a href="vgatextcontroller_8cpp_source.html#l00163">vgatextcontroller.cpp:163</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_v_g_a_text_controller_a4fe93a7b8c83c1fc72de32c202dc381a_html_a4fe93a7b8c83c1fc72de32c202dc381a"><div class="ttname"><a href="classfabgl_1_1_v_g_a_text_controller_a4fe93a7b8c83c1fc72de32c202dc381a.html#a4fe93a7b8c83c1fc72de32c202dc381a">fabgl::VGATextController::colorsCount</a></div><div class="ttdeci">int colorsCount()</div><div class="ttdoc">Determines number of colors this display can provide.</div><div class="ttdef"><b>Definition:</b> <a href="vgatextcontroller_8h_source.html#l00161">vgatextcontroller.h:161</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_v_g_a_text_controller_a6935cf763d0d228200f61930f2141095_html_a6935cf763d0d228200f61930f2141095"><div class="ttname"><a href="classfabgl_1_1_v_g_a_text_controller_a6935cf763d0d228200f61930f2141095.html#a6935cf763d0d228200f61930f2141095">fabgl::VGATextController::setTextMap</a></div><div class="ttdeci">void setTextMap(uint32_t const *map, int rows)</div><div class="ttdoc">Sets text map to display.</div><div class="ttdef"><b>Definition:</b> <a href="vgatextcontroller_8cpp_source.html#l00068">vgatextcontroller.cpp:68</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_v_g_a_text_controller_a8ea5f9decd46d4b507c65a65f9188b0b_html_a8ea5f9decd46d4b507c65a65f9188b0b"><div class="ttname"><a href="classfabgl_1_1_v_g_a_text_controller_a8ea5f9decd46d4b507c65a65f9188b0b.html#a8ea5f9decd46d4b507c65a65f9188b0b">fabgl::VGATextController::setFont</a></div><div class="ttdeci">void setFont(FontInfo const *value)</div><div class="ttdoc">Sets font.</div><div class="ttdef"><b>Definition:</b> <a href="vgatextcontroller_8cpp_source.html#l00087">vgatextcontroller.cpp:87</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_v_g_a_text_controller_a93fe2c22583c485ebf4f60081f535cf8_html_a93fe2c22583c485ebf4f60081f535cf8"><div class="ttname"><a href="classfabgl_1_1_v_g_a_text_controller_a93fe2c22583c485ebf4f60081f535cf8.html#a93fe2c22583c485ebf4f60081f535cf8">fabgl::VGATextController::adjustMapSize</a></div><div class="ttdeci">void adjustMapSize(int *columns, int *rows)</div><div class="ttdoc">Adjusts columns and rows to the controller limits.</div><div class="ttdef"><b>Definition:</b> <a href="vgatextcontroller_8cpp_source.html#l00078">vgatextcontroller.cpp:78</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_v_g_a_text_controller_ab0bdf5cca484fb2ba637c39384b27fb2_html_ab0bdf5cca484fb2ba637c39384b27fb2"><div class="ttname"><a href="classfabgl_1_1_v_g_a_text_controller_ab0bdf5cca484fb2ba637c39384b27fb2.html#ab0bdf5cca484fb2ba637c39384b27fb2">fabgl::VGATextController::begin</a></div><div class="ttdeci">void begin()</div><div class="ttdoc">This is the 64 colors (8 GPIOs) initializer using default pinout.</div><div class="ttdef"><b>Definition:</b> <a href="vgatextcontroller_8cpp_source.html#l00138">vgatextcontroller.cpp:138</a></div></div>
<div class="ttc" id="aclassfabgl_1_1_v_g_a_text_controller_html"><div class="ttname"><a href="classfabgl_1_1_v_g_a_text_controller.html">fabgl::VGATextController</a></div><div class="ttdoc">Represents the VGA text-only controller.</div><div class="ttdef"><b>Definition:</b> <a href="vgatextcontroller_8h_source.html#l00079">vgatextcontroller.h:79</a></div></div>
<div class="ttc" id="afabglconf_8h_html"><div class="ttname"><a href="fabglconf_8h.html">fabglconf.h</a></div><div class="ttdoc">This file contains FabGL library configuration settings, like number of supported colors,...</div></div>
<div class="ttc" id="afabutils_8h_html"><div class="ttname"><a href="fabutils_8h.html">fabutils.h</a></div><div class="ttdoc">This file contains some utility classes and functions.</div></div>
<div class="ttc" id="agroup___enumerations_gab87bacfdad76e61b9412d7124be44c1c_html_gab87bacfdad76e61b9412d7124be44c1c"><div class="ttname"><a href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#gab87bacfdad76e61b9412d7124be44c1c">fabgl::Color</a></div><div class="ttdeci">Color</div><div class="ttdoc">This enum defines named colors.</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00202">displaycontroller.h:202</a></div></div>
<div class="ttc" id="aswgenerator_8h_html"><div class="ttname"><a href="swgenerator_8h.html">swgenerator.h</a></div><div class="ttdoc">This file contains fabgl::GPIOStream definition.</div></div>
<div class="ttc" id="avgacontroller_8h_html"><div class="ttname"><a href="vgacontroller_8h.html">vgacontroller.h</a></div><div class="ttdoc">This file contains fabgl::VGAController definition.</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_10a80204b5b551c852b7cab5e1f7cbce.html">dispdrivers</a></li><li class="navelem"><a class="el" href="vgatextcontroller_8h.html">vgatextcontroller.h</a></li>
    <li class="footer">Generated on Mon Aug 29 2022 13:52:05 for FabGL by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
  </ul>
</div>
</body>
</html>
